package com.woniu.shop.rabibit;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ItemProduct {
    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendLog(Integer id){
        rabbitTemplate.convertAndSend("exchange-service","service",id);
    }
}
